package com.tianji.learning.mapper;

import com.tianji.learning.domain.dto.LearningThisWeekCountDto;
import com.tianji.learning.domain.entity.LearningRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 学习记录表 Mapper 接口
 * </p>
 *
 * @author author
 */
@Mapper
public interface LearningRecordMapper extends BaseMapper<LearningRecord> {

    List<LearningThisWeekCountDto> selectLearningThisWeekCount(@Param("userId") Long userId,
                                                               @Param("weekBeginTime") LocalDateTime weekBeginTime,
                                                               @Param("weekEndTime") LocalDateTime weekEndTime);
}
